<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>课程表</title>
    <link rel="stylesheet" href="/static/admin/css/bootstrap.css">
</head>
<body>
<div class="container" style="width: 700px;margin-top: 150px;">
    <table class="table table-striped table-hover table-bordered">
        <thead>
        <tr>
            <th></th>
            <th>周一</th>
            <th>周二</th>
            <th>周三</th>
            <th>周四</th>
            <th>周五</th>
            <th>周六</th>
            <th>周日</th>
        </tr>
        </thead>
        <tbody>
        <tr>
            <th>第一节<div class="small text-muted">8:00-9:40</div></th>
            <td>{if array_key_exists('1-1',$lessons)}{$lessons['1-1']['classname']}<br/>@{$lessons['1-1']['classroom']}{/if}</td>
            <td>{if array_key_exists('2-1',$lessons)}{$lessons['2-1']['classname']}<br/>@{$lessons['2-1']['classroom']}{/if}</td>
            <td>{if array_key_exists('3-1',$lessons)}{$lessons['3-1']['classname']}<br/>@{$lessons['3-1']['classroom']}{/if}</td>
            <td>{if array_key_exists('4-1',$lessons)}{$lessons['4-1']['classname']}<br/>@{$lessons['4-1']['classroom']}{/if}</td>
            <td>{if array_key_exists('5-1',$lessons)}{$lessons['5-1']['classname']}<br/>@{$lessons['5-1']['classroom']}{/if}</td>
            <td>{if array_key_exists('6-1',$lessons)}{$lessons['6-1']['classname']}<br/>@{$lessons['6-1']['classroom']}{/if}</td>
            <td>{if array_key_exists('7-1',$lessons)}{$lessons['7-1']['classname']}<br/>@{$lessons['7-1']['classroom']}{/if}</td>
        </tr>
        <tr>
            <th>第二节<div class="small text-muted">10:10-11:50</div></th>
            <td>{if array_key_exists('1-2',$lessons)}{$lessons['1-2']['classname']}<br/>@{$lessons['1-2']['classroom']}{/if}</td>
            <td>{if array_key_exists('2-2',$lessons)}{$lessons['2-2']['classname']}<br/>@{$lessons['2-2']['classroom']}{/if}</td>
            <td>{if array_key_exists('3-2',$lessons)}{$lessons['3-2']['classname']}<br/>@{$lessons['3-2']['classroom']}{/if}</td>
            <td>{if array_key_exists('4-2',$lessons)}{$lessons['4-2']['classname']}<br/>@{$lessons['4-2']['classroom']}{/if}</td>
            <td>{if array_key_exists('5-2',$lessons)}{$lessons['5-2']['classname']}<br/>@{$lessons['5-2']['classroom']}{/if}</td>
            <td>{if array_key_exists('6-2',$lessons)}{$lessons['6-2']['classname']}<br/>@{$lessons['6-2']['classroom']}{/if}</td>
            <td>{if array_key_exists('7-2',$lessons)}{$lessons['7-2']['classname']}<br/>@{$lessons['7-2']['classroom']}{/if}</td>
        </tr>
        <tr>
            <th>第三节<div class="small text-muted">14:00-15:40</div></th>
            <td>{if array_key_exists('1-3',$lessons)}{$lessons['1-3']['classname']}<br/>@{$lessons['1-3']['classroom']}{/if}</td>
            <td>{if array_key_exists('2-3',$lessons)}{$lessons['2-3']['classname']}<br/>@{$lessons['2-3']['classroom']}{/if}</td>
            <td>{if array_key_exists('3-3',$lessons)}{$lessons['3-3']['classname']}<br/>@{$lessons['3-3']['classroom']}{/if}</td>
            <td>{if array_key_exists('4-3',$lessons)}{$lessons['4-3']['classname']}<br/>@{$lessons['4-3']['classroom']}{/if}</td>
            <td>{if array_key_exists('5-3',$lessons)}{$lessons['5-3']['classname']}<br/>@{$lessons['5-3']['classroom']}{/if}</td>
            <td>{if array_key_exists('6-3',$lessons)}{$lessons['6-3']['classname']}<br/>@{$lessons['6-3']['classroom']}{/if}</td>
            <td>{if array_key_exists('7-3',$lessons)}{$lessons['7-3']['classname']}<br/>@{$lessons['7-3']['classroom']}{/if}</td>
        </tr>
        <tr>
            <th>第四节<div class="small text-muted">16:10-15:50</div></th>
            <td>{if array_key_exists('1-4',$lessons)}{$lessons['1-4']['classname']}<br/>@{$lessons['1-4']['classroom']}{/if}</td>
            <td>{if array_key_exists('2-4',$lessons)}{$lessons['2-4']['classname']}<br/>@{$lessons['2-4']['classroom']}{/if}</td>
            <td>{if array_key_exists('3-4',$lessons)}{$lessons['3-4']['classname']}<br/>@{$lessons['3-4']['classroom']}{/if}</td>
            <td>{if array_key_exists('4-4',$lessons)}{$lessons['4-4']['classname']}<br/>@{$lessons['4-4']['classroom']}{/if}</td>
            <td>{if array_key_exists('5-4',$lessons)}{$lessons['5-4']['classname']}<br/>@{$lessons['5-4']['classroom']}{/if}</td>
            <td>{if array_key_exists('6-4',$lessons)}{$lessons['6-4']['classname']}<br/>@{$lessons['6-4']['classroom']}{/if}</td>
            <td>{if array_key_exists('7-4',$lessons)}{$lessons['7-4']['classname']}<br/>@{$lessons['7-4']['classroom']}{/if}</td>
        </tr>
        <tr>
            <th>第五节</th>
            <td>{if array_key_exists('1-5',$lessons)}{$lessons['1-5']['classname']}<br/>@{$lessons['1-5']['classroom']}{/if}</td>
            <td>{if array_key_exists('2-5',$lessons)}{$lessons['2-5']['classname']}<br/>@{$lessons['2-5']['classroom']}{/if}</td>
            <td>{if array_key_exists('3-5',$lessons)}{$lessons['3-5']['classname']}<br/>@{$lessons['3-5']['classroom']}{/if}</td>
            <td>{if array_key_exists('4-5',$lessons)}{$lessons['4-5']['classname']}<br/>@{$lessons['4-5']['classroom']}{/if}</td>
            <td>{if array_key_exists('5-5',$lessons)}{$lessons['5-5']['classname']}<br/>@{$lessons['5-5']['classroom']}{/if}</td>
            <td>{if array_key_exists('6-5',$lessons)}{$lessons['6-5']['classname']}<br/>@{$lessons['6-5']['classroom']}{/if}</td>
            <td>{if array_key_exists('7-5',$lessons)}{$lessons['7-5']['classname']}<br/>@{$lessons['7-5']['classroom']}{/if}</td>
        </tr>
        </tbody>
    </table>
</div>
</body>
</html>